﻿using FluentNHibernate.Mapping;
using IapService.Entity;

namespace IapService.Mappings
{
    public class InstanceFavoriteMap : ClassMap<InstanceFavorite>
    {
        public InstanceFavoriteMap()
        {
            Id(x => x.Id);
            Map(x => x.InstanceId);
            References(x => x.Favorite, "favoriteId").Cascade.All();
        }
    }
}